package com.ucode.application.vo.crm;

import java.io.Serializable;
import java.util.Date;
import com.ucode.crm.mode.CrmTeamUser;
import com.ucode.sys.model.User;

@SuppressWarnings("serial")
public class FollowupTeamUserVo implements Serializable{

    private Long id;
    /**
     * 创建时间
     */
    private Date createdTime;
    /**
     * 更新时间
     */
    private Date updatedTime;
    /**
     * 跟进目标Id
     */
    private Long targetId;
    /**
     * 跟进目标类型
     */
    private Integer targetType;
    /**
     * 权限类型:
     * 1、负责人权限(读写)2、读写权限3、只读权限
     */
    private Integer power;
    /**
     * 成员Id
     */
    private Long userId; 
 
    /**
     * 真实姓名
     */
    private String realname;
    /**
     * 头像
     */
    private String headImg;
    /**
     * 性别：0 未知 1 男 2 女 
     */
    private Integer sex;
    /**
     * 状态：0禁用,1正常,2未激活,3离职
     */
    private Integer statuz;
    /**
     * 职位
     */
    private String job;
    
    public FollowupTeamUserVo(){
    }
    
    public FollowupTeamUserVo(CrmTeamUser followupTeamUser,User user){
        super();
        this.id = followupTeamUser.getId();
        this.createdTime = followupTeamUser.getCreatedTime();
        this.updatedTime = followupTeamUser.getUpdatedTime();
        this.targetId = followupTeamUser.getTargetId();
        this.targetType = followupTeamUser.getTargetType();
        this.power = followupTeamUser.getPower();
        this.userId = followupTeamUser.getUserId();
        if(user != null){
            this.realname = user.getRealname();
            this.headImg = user.getHeadImg();
            this.sex = user.getSex();
            this.statuz = user.getStatuz();
            this.job = user.getJob();
        }
    }

    public Long getId() {
        return id;
    }
    public void setId(Long id) {
        this.id = id;
    }
    public Date getCreatedTime() {
        return createdTime;
    }
    public void setCreatedTime(Date createdTime) {
        this.createdTime = createdTime;
    }
    public Date getUpdatedTime() {
        return updatedTime;
    }
    public void setUpdatedTime(Date updatedTime) {
        this.updatedTime = updatedTime;
    }
    public Long getTargetId() {
        return targetId;
    }
    public void setTargetId(Long targetId) {
        this.targetId = targetId;
    }
    public Integer getTargetType() {
        return targetType;
    }
    public void setTargetType(Integer targetType) {
        this.targetType = targetType;
    }
    public Integer getPower() {
        return power;
    }
    public void setPower(Integer power) {
        this.power = power;
    }
    public Long getUserId() {
        return userId;
    }
    public void setUserId(Long userId) {
        this.userId = userId;
    }
    public String getRealname() {
        return realname;
    }
    public void setRealname(String realname) {
        this.realname = realname;
    }
    public String getHeadImg() {
        return headImg;
    }
    public void setHeadImg(String headImg) {
        this.headImg = headImg;
    }
    public Integer getSex() {
        return sex;
    }
    public void setSex(Integer sex) {
        this.sex = sex;
    }
    public Integer getStatuz() {
        return statuz;
    }
    public void setStatuz(Integer statuz) {
        this.statuz = statuz;
    }
    public String getJob() {
        return job;
    }
    public void setJob(String job) {
        this.job = job;
    }
}
